package gti310.tp3.writer;

import java.io.BufferedWriter;
import java.io.FileWriter;

import gti310.tp3.Solutions;

public class ConcreteWriter implements Writer<Solutions> {

	public void write(String filename, Solutions sol) {
		try {
			BufferedWriter graphOut = new BufferedWriter(new FileWriter(
					filename));
			graphOut.write(sol.getSolutionString());
			graphOut.close();
		} catch (Exception e) {
			System.err.println("Error: " + e.getMessage());
		}
	}

}
